<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/26 0026
 * Time: 上午 11:42
 */

namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class BranchRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Branch\Controllers', 'prefix'=>'branch'], function ($router) {

            $router->any('list', 'IndexController@getList');

            $router->any('add', 'IndexController@branchAdd');

            $router->any('edit', 'IndexController@branchEdit');

            $router->any('del', 'IndexController@branchDel');

        });
    }
}